import request from '@/utils/request'

/**
 * 获取路由
 * @param {*} isContainThirdParty 是否包含第三方菜单，不传时，默认不包含，参数为true时，包含第三方菜单
 * @returns 
 */
export const getRouters = (isContainThirdParty) => {
  const requestObj = {
    url: '/system/auth/list-menus',
    method: 'get'
  }
  if (isContainThirdParty) {
    requestObj['params'] = isContainThirdParty
  }
  return request(requestObj)
}

// 我的消息 权限
export const getMenssageClockMenu = () => {
  return request({
    url: '/system/auth/getMenssageClockMenu',
    method: 'get'
  })
}